package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.qhzw.vip.qiyu.model.DtsCarRentalVo;

import java.util.Date;
import java.util.List;

/**
 * 电池出入电柜表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_battery_manage")
public class DtsBatteryManage {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 电柜编码
     */
    @TableField(value = "electric_cabinet_code")
    private String electricCabinetCode;

    /**
     * 电柜名称
     */
    @TableField(value = "electric_cabinet_name")
    private String electricCabinetName;

    /**
     * 电池编码
     */
    @TableField(value = "battery_code")
    private String batteryCode;

    @TableField(value = "is_delete")
    private Byte isDelete;
    @TableField(value = "status")
    private Byte status;
    //出库入库标识 0 入库1出库
    @TableField(value = "out_bound")
    private Byte outBound;
    //入库状态和出库状态 ：0.待报废入库1.旧电池入库2.新电池入库3.待返厂入库
    //4.待检修入库0.补仓1.替换2.返厂3.报废4.检修5.借用
    @TableField(value = "battery_status")
    private Long batteryStatus;
    //备注
    @TableField(value = "remark")
    private String remark;
    @TableField(value = "battery_code_old")
    private String batteryCodeOld;//旧电池
    @TableField(exist = false)
    private List<String> batteryCodeOlds;//旧电池




    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created")
    private Date created;

    @ApiModelProperty(value = "电池编码集")
    @TableField(exist = false)
    private List<String> batteryCodes;

    @TableField(exist = false)
    private String statusValue;


}